C o m m a n d   0 D   -   n p c   m o v e m e n t   p r o p e r t i e s 
 
 
 
 B i t m a s k 
 
 0 1   -   N P C   w a l k s   a r o u n d   m a p   s o l i d i t y 
 
 0 2   -   N P C   w a l k s   a r o u n d   P C   s o l i d i t y 
 
 F C   -   u n u s e d 
 
 
 
 I n t e r p r e t a t i o n 
 
 N P C M o v e P r o p s ( [ w a l k   a r o u n d   w a l l s ] ,   [ w a l k   a r o u n d   P C s ] ) 
 
 
 
 
 
 C o m m a n d   0 E   -   s p r i t e   p o s i t i o n i n g   p r o p e r t i e s   ( d e t e r m i n e s   w h e r e   t o   s t o p   a   m o v i n g   s p r i t e ) 
 
 
 
 B i t m a s k 
 
 0 1   -   c e n t e r   s p r i t e   o n   t i l e ,   u s e d   f o r   m o v e   c o m m a n d s 
 
 0 2   -   c e n t e r   s p r i t e   o n   o b j e c t ,   u s e d   f o r   f o l l o w   c o m m a n d s 
 
 F C   -   u n u s e d 
 
 
 
 
 
 C o m m a n d   1 6   -   i f   s t a t e m e n t 
 
 
 
 O p e r a t o r   e n u m e r a t i o n 
 
 0 :   A   = =   M 
 
 1 :   A   ! =   M 
 
 2 :   A   >   M 
 
 3 :   A   <   M 
 
 4 :   A   > =   M 
 
 5 :   A   < =   M 
 
 6 :   A   &   M   ! =   0 
 
 7 :   A   |   M   ! =   0 
 
 
 
 I f   b i t   0 x 0 8   o f   t h e   o p e r a t o r   i s   s e t ,   t h e n   i t s   t h e   s a m e   a s   a b o v e ,   e x c e p t   t h a t   t h e   8 - b i t   a c c u m u l a t o r   f l a g   i s   a l s o   s e t   a t   t h e   e n d .     T h i s   m a k e s   l i t t l e   s i n c e   t h o u g h ,   s i n c e   i t   l o o k s   l i k e   i t s   a l w a y s   s e t   a n y w a y   b e f o r e   t h e   c o m m a n d   i s   d e c o d e d ,   a n d   i s   n e v e r   r e s e t   b y   i t . 
 
 I f   b i t   0 x 8 0   o f   t h e   o p e r a t o r   i s   s e t ,   0 x 0 1 0 0   i s   a d d e d   t o   t h e   o f f s e t . 
 
 
 
 M   s h o u l d   b e   t h e   t h i r d   b y t e   ( m a r k e d   v v   i n   m y   n o t e s )   a n d   A   s h o u l d   b e   t h e   v a l u e   l o a d e d   f r o m   t h e   o f f s e t   m a r k e d   o o   i n   m y   n o t e s .     B u t   I   m i g h t   h a v e   t h e m   m i x e d   u p ,   s o   i f   i t   d o e s n ' t   a p p e a r   t o   w o r k   p r o p e r l y ,   a s s u m e   t h a t   I   h a v e   t h e m   r e v e r s e d . 
 
 
 
 
 
 C o m m a n d   2 E   -   m u l t i - m o d e   m e m o r y   c o p y 
 
 
 
 M o d e 
 
 4 0 :   2 E   4 c   i i   n n   s e   d d   .   c   -   c o l o r s   a f f e c t e d ,   s a m e   a s   C o l o r A d d   c o m m a n d   .   i i   -   s t a r t i n g   c o l o r   i n d e x   .   n n   -   n u m b e r   o f   c o l o r s   a f f e c t e d   .   s   -   s t a r t i n g   i n t e n s i t y   .   e   -   e n d i n g   i n t e n s i t y   .   d d   -   d u r a t i o n   o f   c h a n g e   .   C o l o r   A d d i t i o n 
 
 5 0 :   C o l o r   S u b t r a c t i o n ,   s a m e   p a r a m s   a s   4 0 
 
 8 0 :   2 E   8 ?   p s   n n n n   .   p   -   p a l e t t e   n u m   .   s   -   s t a r t i n g   c o l o r   .   n n n n   -   b y t e s   t o   c o p y ,   i m m e d i a t e l y   a f t e r   t h e   c o m m a n d   ( + 2 )   .   d o e s   d i f f e r e n t   t h i n g s   b a s e d   o n   m o d e   .   t w o   b y t e   v e r s i o n   o f   8 8 
 
 
 
 
 
 C o m m a n d   8 4   -   n p c   s o l i d i t y   p r o p e r t i e s 
 
 
 
 B i t m a s k s 
 
 0 1   -   n p c   i s   s o l i d 
 
 0 2   -   n p c   c a n   b e   p u s h e d 
 
 F C   -   u n u s e d 
 
 
 
 I n t e r p r e t a t i o n 
 
 N P C S o l i d P r o p s ( [ s o l i d ] ,   [ p u s h a b l e ] ) 
 
 
 
 
 
 C o m m a n d   8 8   -   m u l t i - m o d e   m e m o r y   c o p y 
 
 D o e s   d i f f e r e n t   t h i n g s   b a s e d   o n   m o d e .     I M S ,   3 0   a n d   5 0   d o   t h e   s a m e   t h i n g   a s   2 0   a n d   4 0 .     M o d e s   8 1   a n d   2 0   a r e   c o m m o n l y   u s e d   f o r   p o r t a l s . 
 
 
 
 
 
 M o d e 
 
 0 0 :   8 8   0 0   .   r e s e t   p a l e t t e 
 
 2 0 :   8 8   2 0   ? ?   ? ? 
 
 3 0 :   8 8   3 0   ? ?   ? ? 
 
 4 0 :   8 8   4 ?   ? ?   ? ?   ? ? 
 
 5 0 :   8 8   5 ?   ? ?   ? ?   ? ? 
 
 8 0 :   8 8   8 ?   c c   ? ?   .   c c   -   b y t e s   t o   c o p y ,   i m m e d i a t e l y   a f t e r   t h e   c o m m a n d   ( + 2 ) 
 
 
 
 
 
 C o m m a n d   A 8 ,   A 9   -   f a c e   n p c 
 
 
 
 T h e s e   c o m m a n d s   w i l l   c h a n g e   a   s p r i t e ' s   a p p a r e n t   f a c i n g ,   b u t   n o t   t h e   a c t u a l   f a c i n g   v a l u e   i n   m e m o r y .     T h i s   m e a n s   " r e l a t i v e "   f a c i n g   r e a l l y   c a n n o t   e v e n   b e   f a k e d   b y   f a c i n g   a n   o b j e c t ,   g e t t i n g   t h e   v a l u e ,   a n d   m o d i f y i n g   i t   w i t h   b i t   a n d   b y t e   m a t h . 
 
 
 
 
 
 
 
 C o m m a n d   C 8   -   s p e c i a l   d i a l o g 
 
 
 
 D i s p l a y s   s p e c i a l   g a m e   d i a l o g s 
 
 
 
 i f   b i t s   C 0   a r e   c l e a r : 
 
 0   -   C h a r a c t e r   r e p l a c e   m e n u 
 
 1   -   L o a d   s c r e e n 
 
 2   -   S a v e   s c r e e n 
 
 
 
 v a l u e s   8 0   -   B F   a r e   s h o p s 
 
 v a l u e s   C 0   -   C 7   a r e   n a m i n g   s c r e e n s 
 
 0   -   C r o n o 
 
 1   -   M a r l e 
 
 2   -   L u c c a 
 
 3   -   R o b o 
 
 4   -   F r o g 
 
 5   -   A y l a 
 
 6   -   M a g u s 
 
 7   -   E p o c h 
 
 
 
 
 
 C o m m a n d   D 8   -   B a t t l e 
 
 
 
 B y t e   1 
 
 0 1 :   N o   w i n   p o s e 
 
 0 2 :   M e n u   a t   b o t t o m 
 
 0 4 :   C l o s e   e n e m i e s   ( P C   s o l i d i t y   r e d u c e d   f r o m   1   t i l e   t o   1 / 2   t i l e ) 
 
 0 8 :   U n u s e d .     A p p e a r s   t o   h a v e   b e e n   a n   " e a s y   m o d e "   f l a g ,   a s   i t   i s   o n l y   s e t   i n   b a t t l e s   w h e r e   C r o n o   i s   t h e   o n l y   p o s s i b l e   p a r t y   m e m b e r . 
 
 1 0 :   P e r s i s t e n t   E n e m y   ( m u s t   h a v e   b i t   8 0   s e t   i n   L o a d   E n e m y ) 
 
 2 0 :   P r e - s c r i p t e d   e v e n t s   ( A t t r a c t   m o d e ) 
 
 4 0 :   U n k n o w n ,   a p p e a r s   u n u s e d ,   n o t   s e t   i n   a n y   b a t t l e 
 
 8 0 :   N o   r u n 
 
 
 
 B y t e   2 
 
 0 1 :   U n k n o w n ,   a p p e a r s   u n u s e d ,   n o t   s e t   i n   a n y   b a t t l e 
 
 0 2 :   U n k n o w n ,   a p p e a r s   u n u s e d ,   n o t   s e t   i n   a n y   b a t t l e 
 
 0 4 :   U n k n o w n ,   a p p e a r s   u n u s e d ,   n o t   s e t   i n   a n y   b a t t l e 
 
 0 8 :   U n k n o w n ,   a p p e a r s   u n u s e d ,   n o t   s e t   i n   a n y   b a t t l e 
 
 1 0 :   U n k n o w n ,   u s e d   i n   6   b a t t l e s :   L o c a t i o n   0 7 1   T r u c e   C a n y o n   p o r t a l   [ 0 3 9 C ] ,   L o c a t i o n   0 D F   L a b   3 2   W e s t   e n t r a n c e   [ 0 3 0 9 ] ,   [ 0 4 0 E ] ,   L o c a t i o n   0 E 2   P r o t o   D o m e   [ 0 F B 0 ] ,   [ 1 0 8 1 ] ,   [ 1 0 B E ] 
 
 2 0 :   N o   g a m e   o v e r 
 
 4 0 :   M a p   m u s i c 
 
 8 0 :   A u t o - r e g r o u p 
 
 
 
 
 
 C o m m a n d   D 9   -   M o v e   P a r t y 
 
 
 
 D o e s   n o t   a l w a y s   s e e m   t o   w o r k .     C h a n g i n g   Y   C o o r d   f o r   P C 1   i n   G a t o ' s   r o o m   t o   5   r e s u l t s   i n   n o   c h a n g e .     C h a n g i n g   b o t h   t o   1   d o e s   t h o u g h . 
 
 
 
 T o p   b i t   o f   c o o r d s   c o n t r o l s   P C   f a c i n g : 
 
 0 0 , 0 0   -   U p 
 
 8 0 , 0 0   -   L e f t 
 
 0 0 , 8 0   -   D o w n 
 
 8 0 , 8 0   -   R i g h t 
 
 
 
 
 
 C o m m a n d   E 0   -   W a r p   P a r t y 
 
 
 
 I   t h i n k   t h e   d i f f e r e n c e   b e t w e e n   t h i s   c o m m a n d   a n d   D F ,   E 1   i s   t h a t   t h e y   w a i t   f o r   V B l a n k   b e f o r e   u p d a t i n g 
 
 
 
 L o c a t i o n   b i t m a s k s 
 
 0 1 F F   -   L o c a t i o n 
 
 1 E 0 0   -   U n k n o w n 
 
 6 0 0 0   -   I g n o r e d 
 
 8 0 0 0   -   U n k n o w n 
 
 
 
 I n t e r p r e t a t i o n   r e a d s : 
 
 E 0   [ L o c a t i o n ]   [ M a s k 1 E 0 0 ]   [ M a s k 8 0 0 0 ]   x x   y y 
 
 
 
 
 
 C o m m a n d   E 4 ,   E 5   -   C o p y   T i l e s 
 
 
 
 N e e d   m o r e   e x a m p l e s   t o   l o o k   a t   f o r   t h i s   c o m m a n d .     E 5   i s   a l m o s t   i d e n t i c a l   t o   E 4 ,   b u t   E 5   l o o k s   a t   b i t s   0 7   a g a i n   a f t e r   i t   c o p i e s   t h e   t i l e s ,   f o r   s o m e   r e a s o n   I   h a v e   n o t   y e t   d e t e r m i n e d . 
 
 
 
 f f   b i t f i e l d   a r g u m e n t s : 
 
 0 1   -   c o p y   l a y e r   1 
 
 0 2   -   c o p y   l a y e r   2   ( ? ) 
 
 0 4   -   c o p y   l a y e r   3   ( ? ) 
 
 0 8   -   c o p y   t i l e   p r o p e r t i e s   ( l a y e r   1   o n l y ? ) 
 
 F 0   -   ? ? ? 
 
 
 
 
 
 C o m m a n d   E 6   -   S c r o l l   L a y e r s 
 
 
 
 E 6   i s   a   b i t   d i f f e r e n t   f r o m   E 7   ( S c r o l l   S c r e e n ) .     I t   c a n   d o   t w o   s c r o l l s   ( t o   a n d   b a c k )   a n d   c a n   s c r o l l   i n d i v i d u a l   l a y e r s . 
 
 
 
 
 
 C o m m a n d   E C   -   A l l   p u r p o s e   s o u n d   c o m m a n d 
 
 
 
 C o m m a n d s : 
 
 1 1   s s   0 0   .   p l a y   s o n g   s s 
 
 1 4   s s   0 0   .   n o t e   p o s i t i o n   o f   c u r r e n t   m u s i c   a n d   p l a y   s o n g   s s 
 
 1 8   s s   p p   .   p l a y   s o u n d   s s   a t   p a n n i n g   p o s i t i o n   p p   ( l e f t   =   0 0 ,   r i g h t   =   F F ) 
 
 1 9   s s   p p   .   a p p e a r s   t o   b e   t h e   s a m e   a s   1 8 
 
 8 2   s s   v v   .   c h a n g e   s o u n d   e f f e c t   v o l u m e   t o   v v   o v e r   d u r a t i o n   s s 
 
 8 3   ? ?   ? ?   .   n o   d i s c e r n a b l e   e f f e c t ,   u s u a l l y   f o l l o w s   8 2 
 
 8 5   s s   r r   .   a p p e a r s   t o   b e   t h e   s a m e   a s   8 6 
 
 8 6   s s   r r   .   c h a n g e   s o n g ' s   r a t e   o f   p l a y   t o   r r   o v e r   d u r a t i o n   s s   .   r r   i s   a   s i g n e d   b y t e . 
 
 8 8   0 1   0 1   .   c h a n g e   s o n g ' s   s t a t e   ( e g :   C h r o n o   T r i g g e r   a t t r a c t   m o d e ) 
 
 F 0   0 0   0 0   .   s o n g   g o e s   t o   s i l e n c e   ( o n l y   u s e d   o n c e ) 
 
 F 2   0 0   0 0   .   s o u n d   e f f e c t   g o e s   t o   s i l e n c e   ( o n l y   u s e d   o n c e ) 
 
 
 
 O n l y   t h r e e   s o n g s   c a n   h a v e   t h e i r   s t a t e s   c h a n g e d : 
 
 0 D   -   L a v o s '   T h e m e 
 
 1 8   -   C h r o n o   T r i g g e r 
 
 2 3   -   T h e   H i d d e n   T r u t h 
 
 
 
 
 
 C o m m a n d   F F   -   M o d e   7   s c e n e 
 
 
 
 C a l l s   a   M o d e   7   s c e n e .     c a u s e s   d a t a   a t   0 x 0 3 1 5 1 3   t o   b e   d e c o m p r e s s e d .     A   f e w   v a l u e s : 
 
 0 0   -   h i g h w a y   r a c e 
 
 0 1   -   n o n e 
 
 0 2   -   t i t l e   s c r e e n 
 
 0 3   -   t o p   o f   b l a c k   o m e n ,   " b l u r s "   i n t o   v i e w   ( D o e s   N o t   L o a d   n e w   g r a p h i c s ,   m a y   n o t   b e   v i s i b l e ) 
 
 0 4   -   l a v o s   f a l l s   t o   e a r t h 
 
 0 A   -   f i r e w o r k s 
 
 0 C   -   c r e d i t s   o v e r   m o v i n g   s t a r   b a c k g r o u n d 
 
 0 D   -   p r o g r a m m e r ' s   e n d i n g   c r e d i t s 
 
 2 5   -   l a v o s   s u m m o n e d   t o   6 0 0 A D   ( D N L ) 
 
 6 6   -   E p o c h ,   f i r s t   p e r s o n   v i e w 
 
 6 7   -   w o r l d   g l o b e   e x p l o d i n g ,   " B u t   t h e   f u t u r e   r e f u s e d   t o   c h a n g e " 
 
 6 8   -   w o r l d   g l o b e ,   " B u t   t h e   f u t u r e   r e f u s e d   t o   c h a n g e "   ( s h o r t   v e r s i o n )   
 
 6 9   -   a t t r a c t   m o d e   h i g h w a y   r a c e 
 
 8 0   -   l o n g   w o r m h o l e   ( f i r s t   w a r p   t o   6 0 0   A . D . ) 
 
 8 1   -   n o r m a l   w o r m h o l e 
 
 8 2   -   q u i c k   w o r m h o l e 
 
 8 9   -   w o r m h o l e   t o   l a v o s 
 
 9 0   -   b l a c k   c i r c l e   t h a t   o p e n s   s i m i l a r   t o   a   p o r t a l   a n d   c o v e r s   t h e   e n t i r e   s c r e e n   ( D N L ) 
 
 9 1   -   n o n e 
 
 9 2   -   t h e   s c r e e n   w i p e   e f f e c t   u s e d   d u r i n g   a t t r a c t   m o d e   ( l e f t   t o   r i g h t ) 
 
 9 3   -   t h e   s c r e e n   w i p e   e f f e c t   u s e d   d u r i n g   a t t r a c t   m o d e   ( r i g h t   t o   l e f t ,   o p e n ) 
 
 9 4   -   l e f t   t o   r i g h t   w i p e   ( c l o s e ) 
 
 9 5   -   r i g h t   t o   l e f t   w i p e   ( c l o s e ) 
 
 9 6   -   R e s e t   ( s e e   C a s t l e   M a g u s   I n n e r   S a n c t u m ) 
 
 9 7   -   u n k n o w n ,   n o t   u s e d .     S t o r e s   n e x t   3   b y t e s   t o   7 E 0 1 3 A , 7 E 0 1 3 B , 7 E 0 1 3 D ,   a n d   0 x 0 4   t o   7 E 0 1 3 9   a n d   0 x 0 0   t o   7 E 0 1 3 C 
 
 9 8   -   u s e d   b y   T a b a n   d u r i n g   M o o n l i g h t   P a r a d e   e n d i n g 
 
 9 9   -   u s e d   d u r i n g   D e a t h   P e a k   s u m m i t   s e q u e n c e ,   n o   n o t i c a b l e   e f f e c t 
 
 9 A   -   u s e d   a f t e r   C r o n o   r e v i v e d   i n   D e a t h   P e a k   s e q u e n c e 
 
 9 B   -   M a s s i v e   P o r t a l   ( s e e   C a s t l e   M a g u s   I n n e r   S a n c t u m ) 
 
 9 D   -   u n k n o w n ,   n o t   u s e d .     R e s e t s   b i t   0 x 0 2   i n   7 E 0 1 5 4 .     L 3   a n d / o r   A S C I I   t e x t   r e l a t e d ? 
 
 9 E   -   R e a l i t y   D i s t o r t i o n   ( s e e   C a s t l e   M a g u s   I n n e r   S a n c t u m ) 
 
 9 F   -   s e t   N e w   G a m e + ,   a n d   p o s s i b l y   o t h e r   r e l a t e d   d a t a .     O n l y   u s e d   o n c e   i n   L o c a t i o n   1 D F   T e s s e r a c t ,   o f f s e t   [ 0 1 A 4 ] 
 
 * P A R   c o d e   7 E 0 1 D F x x   w i l l   c h a n g e   a n y   M o d e   7   e v e n t   t o   t h e   n e w   v a l u e   e n t e r e d 